package com.eam.service.impl;

import java.util.List;

import com.eam.bean.Asset;
import com.eam.dao.AssetDAO;
import com.eam.service.AssetService;

/**
 * liubiao
 */
public class AssetServiceImpl implements AssetService {
	private AssetDAO assetDAO;

	public AssetDAO getAssetDAO() {
		return assetDAO;
	}

	public void setAssetDAO(AssetDAO assetDAO) {
		this.assetDAO = assetDAO;
	}

	public boolean save(Asset asset) {

		return assetDAO.save(asset);
	}

	public boolean delete(Asset asset) {
		return assetDAO.delete(asset);
	}

	public boolean update(Asset asset) {
		return assetDAO.update(asset);
	}

	public List<Asset> query() {
		return assetDAO.findAll();
	}

	public List findByName(Object name) {
		return assetDAO.findByName(name);
	}

}
